package baidu.bms.consumer;

import baidu.bms.DemoServiceConsumer;
import baidu.bms.DemoServiceProvider;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author sunqiyuan
 * @Classname DefaultDemoService
 * @Description TODO
 * @Date 2020/10/13 8:55 下午
 * @Version V1.0
 */
@DubboService(version = "${demo.service.version}")
public class DefaultDemoServiceConsumer implements DemoServiceConsumer {

    /**
     * The default value of ${dubbo.application.name} is ${spring.application.name}
     */
    @Value("${dubbo.application.name}")
    private String serviceName;


    @Override
    public String methodB(String name) {
        String param = String.format(" %s ---> [%s : methodB: dubboServer] ", name, serviceName);
        return param;
    }

}
